package com.c3w.synchro.member.service;

import com.c3w.synchro.common.dao.BeanDao;
import com.c3w.synchro.common.service.BeanService;
import com.c3w.synchro.member.bean.Athlete;
import com.c3w.synchro.member.validator.AthleteValidator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;

/**
 * User: magirard
 * Date: 12-11-13
 */
@Service("athleteService")
public class AthleteServiceImpl extends BeanService<Athlete> implements AthleteService {

    @Autowired
    private BeanDao<Athlete> athleteDao;

    @PostConstruct
    public void initService() {
        setBeanDao(athleteDao);
        setBeanValidator(new AthleteValidator());
    }

}
